package core.ball 
{
	import core.player.Player;
	
	public class Ball 
	{
		private var tagger:Player;
		
		private var score:int = 0;
		private var multiplier:int = 1;
		
		private var tiers:Array;
		
		// Constructor
		public function Ball(inTiers:Array) 
		{
			Tiers = inTiers;
		}
		
		// Public Functions
		public function AddPoints(pointsToAdd:int)
		{
			Score += pointsToAdd * Multiplier;
		}
		
		public function IncreaseMultiplier():void
		{
			Multiplier *= 2;
		}
		
		// Get / Sets
		public function get Tiers():Array
		{
			return Tiers;
		}
		public function set Tiers(value:Array):void
		{
			Tiers = value;
			Tiers.sort(Array.DESCENDING);
		}
		
		public function get Tagger():Player
		{
			return tagger;
		}
		public function set Tagger(value:Player):void
		{
			tagger = value;
		}
		
		public function get Score():int
		{
			return score;
		}
		public function set Score(value:int):void
		{
			score = value;
		}
		
		public function get Multiplier():int
		{
			return Multiplier;
		}
		public function set Multiplier(value:int):void
		{
			multiplier = value;
		}
		
		// Protected Functions
		
		// Private Functions
		private function ThresholdCheck():void
		{
			
		}
	}

}